<?php
$arrConst = Efy_Init_Const::_setProjectPublicConst();
$arrStaffPermission = $_SESSION['arrStaffPermission'];
//Check permission
$sAdministratorSystem = "";
$sAdministratorSystem1 = "";
$sAdministratorSystem2 = "";
?>
<!--TIEP NHAN -->
<div style="margin:3px 3px 0 3px">
	<ul id = "left_Tiep_nhan">
		<li id = "05">
			<a href="<?php echo $this->baseUrl; ?>../M01/05" onclick="{selectLeft(this,'Tiep_nhan','05');return false;}" >Nhận HS đơn vị khác</a>		</li>
		<li id = "01">
			<a href="<?php echo $this->baseUrl; ?>../M01/01" onclick="{selectLeft(this,'Tiep_nhan','01');return false;}" >HS mới tiếp nhận</a>		</li>
		<li id = "02">
			<a href="<?php echo $this->baseUrl; ?>../M01/02" onclick="{selectLeft(this,'Tiep_nhan','02');return false;}" >HS thuộc thẩm quyền</a>		</li>
		<li id = "03">
			<a href="<?php echo $this->baseUrl; ?>../M01/03" onclick="{selectLeft(this,'Tiep_nhan','03');return false;}" >HS không thuộc thẩm quyền</a>		</li>
		<li id = "04">
			<a href="<?php echo $this->baseUrl; ?>../M01/04" onclick="{selectLeft(this,'Tiep_nhan','04');return false;}" >HS chờ TKQ</a>		</li>
	</ul>
</div>
<div style="margin:3px 3px 0 3px">
	<ul id = "left_Tham_muu">
		<li id = "06">
			<a href="<?php echo $this->baseUrl; ?>../M02/06" onclick="{selectLeft(this,'Tham_muu','06');return false;}" >Đơn thư chờ tham mưu</a>		</li>
		<li id = "07">
			<a href="<?php echo $this->baseUrl; ?>../M02/07" onclick="{selectLeft(this,'Tham_muu','07');return false;}" >Đơn thư đã tham mưu</a>		</li>
		<li id = "08">
			<a href="<?php echo $this->baseUrl; ?>../M02/08" onclick="{selectLeft(this,'Tham_muu','08');return false;}" >Ý kiếm LĐ duyệt tham mưu</a>		</li>
		<li id = "09">
			<a href="<?php echo $this->baseUrl; ?>../M02/09" onclick="{selectLeft(this,'Tham_muu','09');return false;}" >HS chờ bàn giao</a>		</li>
		<li id = "10">
			<a href="<?php echo $this->baseUrl; ?>../M02/10" onclick="{selectLeft(this,'Tham_muu','10');return false;}" >HS đã bàn giao</a>		</li>
	</ul>
</div>
<div style="margin:3px 3px 0 3px">
	<ul id = "left_thu_ly">
		<li id = "16">
			<a href="<?php echo $this->baseUrl; ?>../M03/16" onclick="{selectLeft(this,'thu_ly','16');return false;}" >HS chờ nhận (Văn thư phòng)</a>		</li>
		<li id = "14">
			<a href="<?php echo $this->baseUrl; ?>../M03/14" onclick="{selectLeft(this,'thu_ly','14');return false;}" >HS chờ thụ lý</a>		</li>
		<li id = "15">
			<a href="<?php echo $this->baseUrl; ?>../M03/15" onclick="{selectLeft(this,'thu_ly','15');return false;}" >HS đã thụ lý</a>		</li>
		<li id = "13">
			<a href="<?php echo $this->baseUrl; ?>../M03/13" onclick="{selectLeft(this,'thu_ly','13');return false;}" >Duyệt hồ sơ</a>		</li>
	</ul>
</div>
<div style="margin:3px 3px 0 3px">
	<ul id = "left_Phe_duyet">
		<li id = "19">
			<a href="<?php echo $this->baseUrl; ?>../M04/19" onclick="{selectLeft(this,'Phe_duyet','19');return false;}" >Tham mưu chờ duyệt (Tổ trưởng)</a>		</li>
		<li id = "18">
			<a href="<?php echo $this->baseUrl; ?>../M04/18" onclick="{selectLeft(this,'Phe_duyet','18');return false;}" >HS chờ duyệt (LĐ UB)</a>		</li>
		<li id = "17">
			<a href="<?php echo $this->baseUrl; ?>../M04/17" onclick="{selectLeft(this,'Phe_duyet','17');return false;}" >HS chờ duyệt (LĐ phòng)</a>		</li>
		<li id = "20">
			<a href="<?php echo $this->baseUrl; ?>../M04/20" onclick="{selectLeft(this,'Phe_duyet','20');return false;}" >Tham mưu chờ duyệt (LĐ UB)</a>		</li>
	</ul>
</div>

<!--QUAN TRI-->
<div style="margin:3px 3px 0 3px">
    <ul id = "left_admin">
        <li id = "left_admin_listtype_index">
            <a href="<?php echo $this->baseUrl; ?>../listxml/listtype/#index/" onclick="{selectLeft(this,'ADMIN','listtype');return false;}">Loại danh mục</a>
        </li>
        <li id = "left_admin_list_index">
            <a href="<?php echo $this->baseUrl; ?>../listxml/list/#index/" onclick="{selectLeft(this,'ADMIN','list');return false;}">Danh mục đối tượng</a>
        </li>
        <li id = "left_admin_module_index">
            <a href="<?php echo $this->baseUrl; ?>../system/module/index/" onclick="{selectLeft(this,'ADMIN','module');return false;}">Danh mục packet</a>
        </li>
        <li id = "left_admin_menu_index">
            <a href="<?php echo $this->baseUrl; ?>../system/menu/index/" onclick="{selectLeft(this,'ADMIN','menu');return false;}">Danh mục menu</a>
        </li>
    </ul>
</div>	
<script type = "text/javascript"><?php
    $sCurrentModulCode = $this->currentModulCode;
    $getModulLeft = $this->getStatusLeftMenu;
    $scurrentModulCodeForLeft = $this->currentModulCodeForLeft;
    ?>
    CurrentModulCode = '<?= $sCurrentModulCode ?>';	
    getModulLeft = '<?= $getModulLeft ?>';
    currentModulCodeForLeft = '<?= $scurrentModulCodeForLeft ?>';
    setleftmenu(CurrentModulCode,currentModulCodeForLeft);
    function setleftmenu(CurrentModulCode,currentModulCodeForLeft){
        $('div#left-silebar').find('ul').attr('style','display:none');
        $('div#left-silebar').find('li').removeClass('visited');
        try{
            if (CurrentModulCode == "Tiep_nhan"){
document.getElementById("left_Tiep_nhan").style.display = "block";
switch(currentModulCodeForLeft){
	case "05":
		document.getElementById("05").className = "visited";
		break;
	case "01":
		document.getElementById("01").className = "visited";
		break;
	case "02":
		document.getElementById("02").className = "visited";
		break;
	case "03":
		document.getElementById("03").className = "visited";
		break;
	case "04":
		document.getElementById("04").className = "visited";
		break;
	}
}
if (CurrentModulCode == "Tham_muu"){
document.getElementById("left_Tham_muu").style.display = "block";
switch(currentModulCodeForLeft){
	case "06":
		document.getElementById("06").className = "visited";
		break;
	case "07":
		document.getElementById("07").className = "visited";
		break;
	case "08":
		document.getElementById("08").className = "visited";
		break;
	case "09":
		document.getElementById("09").className = "visited";
		break;
	case "10":
		document.getElementById("10").className = "visited";
		break;
	}
}
if (CurrentModulCode == "thu_ly"){
document.getElementById("left_thu_ly").style.display = "block";
switch(currentModulCodeForLeft){
	case "16":
		document.getElementById("16").className = "visited";
		break;
	case "14":
		document.getElementById("14").className = "visited";
		break;
	case "15":
		document.getElementById("15").className = "visited";
		break;
	case "13":
		document.getElementById("13").className = "visited";
		break;
	}
}
if (CurrentModulCode == "Phe_duyet"){
document.getElementById("left_Phe_duyet").style.display = "block";
switch(currentModulCodeForLeft){
	case "19":
		document.getElementById("19").className = "visited";
		break;
	case "18":
		document.getElementById("18").className = "visited";
		break;
	case "17":
		document.getElementById("17").className = "visited";
		break;
	case "20":
		document.getElementById("20").className = "visited";
		break;
	}
}

            //QUAN TRI
            if (CurrentModulCode == "ADMIN"){
                document.getElementById('left_admin').style.display = 'block';
                switch(currentModulCodeForLeft){
                    case "listtype":
                        document.getElementById('left_admin_listtype_index').className = "visited";
                        break;
                    case "list":
                        document.getElementById('left_admin_list_index').className = "visited";
                        break;
                    case "permission":
                        document.getElementById('left_admin_permission_index').className = "visited";
                        break;
                    case "permission_insurance_uni":
                        document.getElementById('left_admin_permission_insurance_unit_index').className = "visited";
                        break;
                    case "action":
                        document.getElementById('left_admin_action_index').className = "visited";
                        break;
                    case "module":
                        document.getElementById('left_admin_module_index').className = "visited";
                        break;
                    case "menu":
                        document.getElementById('left_admin_menu_index').className = "visited";
                        break;
                    default:
                        document.getElementById('left_admin_listtype_index').className = "visited";
                }
            }
        }catch(e){;}	
    }
</script>